import Vue from 'vue'
	import store from '@/store'
	// 服务器1
	let base_url_1 = {
		// developmentUrl: 'http://172.22.36.77:8000', //https://mini.cdg.chnscc.com http://192.168.1.110:8099
		// productionUrl: 'http://172.22.36.77:8000',
		developmentUrl: 'http://120.24.191.33:30000', //https://mini.cdg.chnscc.com http://192.168.1.110:8099
		productionUrl: 'http://120.24.191.33:30000', //f69db7ba4753493a42d873813a7fb4bcbd50f160
	}
	// 服务器2
	let base_url_2 = {
		developmentUrl: 'https://api.mch.weixin.qq.com',
		productionUrl: '',
	}
	// 服务器3
	let base_url_3 = {
		developmentUrl: 'https://pv.sohu.com/cityjson',
		productionUrl: '',
	}
	var url_1, url_2, url_3;
	let development = process.env.NODE_ENV === 'development';
	// #ifdef MP
	development = __wxConfig.envVersion === 'develop';
	// #endif
	if (development) {
		console.log('开发环境  url.js')
		url_1 = base_url_1.developmentUrl;
		url_2 = base_url_2.developmentUrl;
		url_3 = base_url_3.developmentUrl;
		// store.commit('appSetting/setAppSetting', {
		// 	development: true
		// });
	} else {
		console.log('生产环境  url.js')
		url_1 = base_url_1.productionUrl;
		url_2 = base_url_2.productionUrl;
		url_3 = base_url_3.productionUrl;
		// store.commit('appSetting/setAppSetting', {
		// 	development: false
		// });
	}
	Vue.prototype.$baseUrl1 = url_1;
	Vue.prototype.$baseUrl2 = url_2;
	Vue.prototype.$baseUrl3 = url_3;
	export var url_1 = url_1;
	export var url_2 = url_2;
	export var url_3 = url_3;